import { MockMethod } from 'vite-plugin-mock'

export default [
  {
    url: '/mock/userInfo',
    method: 'get',
    response: () => {
      return {
        code: 200,
        data: {
          username: 'admin',
          avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif'
        },
        msg: 'success'
      }
    }
  }
] as MockMethod[]
